package app.netmorphgui.tabs;

import java.awt.BorderLayout;

import javax.swing.JLabel;

import netmorph.model.ConfigFile;

public class OutputTab extends AbstractTab {
  
	public OutputTab(ConfigFile cfg) {
		
		setLayout(new BorderLayout());
		
		add(new JLabel("Output settings"), BorderLayout.NORTH);
		table = new JMapTable(cfg, cfg.getOutputKeys());

		table.update();
		add(table, BorderLayout.CENTER);
	}
	
	@Override
	public String getTitle() {
		return "Output";
	}
	 	@Override
	public void load(ConfigFile cfg) {
		table.setData(cfg, cfg.getOutputKeys());
	}

}
